

// 原型模式
function Player(color){
    this.color = color;
}

Player.prototype.start = function(){
    console.log('下棋');
}

var plyer1 = new Player('w');
var plyer2 = new Player('b');
console.log(plyer1)
console.log(plyer2)
console.log(plyer1.start === plyer2.start)
console.log('========原型===========')
